<?php
$title=$_POST["title"];
$content=$_POST["content"];
$updatetime=date_format(new datetime(),'Y-M-D H-I-S');
$id=$_GET["id"];
$sql="UPDATE 'article' set 'title'='$title','content'='$content','updatetime'='$updatetime' where 'id'='$id'";
$conn=new mysqli("localhost","root","","myblood");
$conn->query($sql);
if($conn->error) die($conn->error);
$url="article_list.php";
Header("location:$url");
die("");
?>